from django.db import models

# Create your models here.
class Country(models.Model):
	name = models.CharField(max_length=45)
	def __unicode__(self):
		return "%s" % (self.name)
		
class Region(models.Model):
	name = models.CharField(max_length=45)
	country = models.ForeignKey('Country')
	def __unicode__(self):
		return "%s" % (self.name)
		
class City(models.Model):
	name = models.CharField(max_length=45)
	latitude = models.FloatField()
	longitude = models.FloatField()
	region = models.ForeignKey('Region')
	def __unicode__(self):
		return "%s" % (self.name)